// src/data/commentsData.js
const commentsData = [
  {
    id: "1",
    author: "张三",
    createdAt: "1小时前",
     content: `
# 前端资源汇总

这是一个包含**文字**、![图片](https://picsum.photos/600/300)和[链接](https://example.com)的完整示例。

点击下方链接访问常用资源：
- [Vue.js 官方文档](https://cn.vuejs.org/)
- [Tailwind CSS](https://tailwindcss.com/)

![前端开发](https://picsum.photos/seed/frontend/600/200)

> 提示：图片使用了占位符服务，实际使用时请替换为真实图片链接
`,
    likes: 15,
    replies: [
      {
        id: "1-1",
        author: "李四",
        createdAt: "50分钟前",
        content: "回复 @张三：我觉得这个问题很有讨论价值，我支持你的观点！",
        likes: 8,
        replyTo: "张三",
        parentId: "1"
      },
      {
        id: "1-2",
        author: "王五",
        createdAt: "40分钟前",
        content: "回复 @李四：我不太同意你的看法，我认为应该从另一个角度考虑。",
        likes: 3,
        replyTo: "李四",
        parentId: "1"
      },
      {
        id: "1-3",
        author: "赵六",
        createdAt: "35分钟前",
        content: "回复 @张三：请问这个问题有实际案例可以参考吗？",
        likes: 5,
        replyTo: "张三",
        parentId: "1"
      },
      {
        id: "1-4",
        author: "孙七",
        createdAt: "25分钟前",
        content: "回复 @王五：我觉得你说的有道理，我们可以结合实际数据来分析。",
        likes: 2,
        replyTo: "王五",
        parentId: "1"
      },
      {
        id: "1-5",
        author: "周八",
        createdAt: "15分钟前",
        content: "回复 @赵六：我这里有一个相关的案例，需要的话可以分享给大家。",
        likes: 4,
        replyTo: "赵六",
        parentId: "1"
      },
    ],
    expanded: false
  },
  {
    id: "2",
    author: "李四",
    createdAt: "50分钟前",
    content: "我认为技术发展的速度正在加快，大家有什么看法？",
    likes: 12,
    replies: [
      {
        id: "2-1",
        author: "张三",
        createdAt: "45分钟前",
        content: "回复 @李四：同意，特别是人工智能领域的突破令人瞩目。",
        likes: 7,
        replyTo: "李四",
        parentId: "2"
      },
      {
        id: "2-2",
        author: "王五",
        createdAt: "40分钟前",
        content: "回复 @张三：但是我们也需要关注技术带来的伦理和社会问题。",
        likes: 5,
        replyTo: "张三",
        parentId: "2"
      },
    ],
    expanded: false
  },
  {
    id: "3",
    author: "王五",
    createdAt: "40分钟前",
    content: "最近在学习Vue 3，有一起学习的小伙伴吗？",
    likes: 9,
    replies: [
      {
        id: "3-1",
        author: "赵六",
        createdAt: "35分钟前",
        content: "回复 @王五：我也在学习，Composition API真的很强大！",
        likes: 4,
        replyTo: "王五",
        parentId: "3"
      },
    ],
    expanded: false
  },
  {
    id: "4",
    author: "赵六",
    createdAt: "35分钟前",
    content: "推荐一本最近读的好书《代码整洁之道》，大家有读过的吗？",
    likes: 8,
    replies: [],
    expanded: false
  },
  {
    id: "5",
    author: "孙七",
    createdAt: "30分钟前",
    content: "前端面试一般会问哪些问题？有经验的可以分享一下吗？",
    likes: 11,
    replies: [
      {
        id: "5-1",
        author: "张三",
        createdAt: "25分钟前",
        content: "回复 @孙七：我面试时被问了很多关于React和Vue的原理性问题。",
        likes: 6,
        replyTo: "孙七",
        parentId: "5"
      },
      {
        id: "5-2",
        author: "李四",
        createdAt: "20分钟前",
        content: "回复 @张三：我觉得算法和数据结构也很重要，即使是前端开发。",
        likes: 4,
        replyTo: "张三",
        parentId: "5"
      },
    ],
    expanded: false
  },
  {
    id: "6",
    author: "周八",
    createdAt: "25分钟前",
    content: "如何提高代码质量？有什么好的方法和工具推荐吗？",
    likes: 7,
    replies: [],
    expanded: false
  },
  {
    id: "7",
    author: "吴九",
    createdAt: "20分钟前",
    content: "大家平时用什么工具进行代码审查？",
    likes: 5,
    replies: [
      {
        id: "7-1",
        author: "赵六",
        createdAt: "15分钟前",
        content: "回复 @吴九：我们团队用SonarQube，感觉还不错。",
        likes: 3,
        replyTo: "吴九",
        parentId: "7"
      },
    ],
    expanded: false
  },
  {
    id: "8",
    author: "郑十",
    createdAt: "15分钟前",
    content: "React和Vue哪个更适合初学者？",
    likes: 13,
    replies: [
      {
        id: "8-1",
        author: "张三",
        createdAt: "10分钟前",
        content: "回复 @郑十：我认为Vue更容易上手，文档也更友好。",
        likes: 8,
        replyTo: "郑十",
        parentId: "8"
      },
      {
        id: "8-2",
        author: "李四",
        createdAt: "8分钟前",
        content: "回复 @张三：但React的生态系统更庞大，学习资源也更多。",
        likes: 5,
        replyTo: "张三",
        parentId: "8"
      },
    ],
    expanded: false
  },
  {
    id: "9",
    author: "钱十一",
    createdAt: "10分钟前",
    content: "TypeScript值得学习吗？对前端开发有多大帮助？",
    likes: 10,
    replies: [
      {
        id: "9-1",
        author: "王五",
        createdAt: "5分钟前",
        content: "回复 @钱十一：绝对值得！它能大大提高代码的可维护性。",
        likes: 7,
        replyTo: "钱十一",
        parentId: "9"
      },
    ],
    expanded: false
  },
  {
    id: "10",
    author: "孙十二",
    createdAt: "5分钟前",
    content: "如何优化前端应用的性能？有哪些实用的技巧？",
    likes: 9,
    replies: [],
    expanded: false
  },
  {
    id: "11",
    author: "周十三",
    createdAt: "刚刚",
    content: "大家有没有遇到过跨域问题？是如何解决的？",
    likes: 4,
    replies: [],
    expanded: false
  },
]

export default commentsData;